package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class Rust extends Weapon {
    public int refineLevel;
    public Rust(int refineLevel){
        this.atk = 510D;
        this.subStatValue = 41.3D;
        this.refineLevel = refineLevel;
        this.name = "弓藏";
        this.code = 9;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addAtk(this.subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        character.addIncrease(40*(1+(refineLevel-1)*0.25));
        return character;
    }
}
